package DataAccess.Storage;

import java.io.Serializable;

import DistSys.Layer;
/**
 * Title:        iPAD
 * Description:
 * Copyright:    Copyright (c) 2002
 * Company:      ABB Inc.
 * @author Fangxing Li
 * @version 1.0
 */

public class LayerForStorage implements Serializable {
  public static final long serialVersionUID=100201L;

  protected int     iIndex;
  protected String  sName;
  protected int     iMode;
  //protected int     iEngine;

  public LayerForStorage() { }

  public void copyFromLayer(Layer lyr ){
      this.iIndex = lyr.getIndex();
      this.sName  = lyr.getName();
      this.iMode  = lyr.getMode();
      //this.iEngine= lyr.getEngine();
  }

  public Layer createLayerFromThis( ){
      Layer lyr = new Layer( iIndex, sName, iMode, 0); //iEngine=0;
      return lyr;
  }
}